<div data-role="page">

  <div data-role="header" data-position="fixed" data-tap-toggle="false">
    <h1>Câu hỏi</h1>
    <a href="" data-rel="back">Trang chủ</a>
  </div>

  <div data-role="content">
    <ul data-role="listview" data-inset="true">
    <% @questions.each do |question| %>
    <li data-icon="arrow-r" data-iconpos="right" data-theme="d">
      
      <a href="<%= url_for(:action => :index, :controller => :QADetail, :query => {:question_id => question["id"], :teacher_id => $user["id"]}) %>">
      <h3><%= question["title"] %></h3>
      <p>
        <%= question["grade_name"] %>, <%= question["subject_name"] %>
      </p>
    </a>
    </li>    

    <% end %>
  </ul>
  </div>

</div>
